package com.base.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import com.base.mapper.voipmapper.ShopTextMapper;
import com.base.po.sqlparam.ShopTextExamplePage;
import com.base.po.voip.ShopText;
import com.base.po.voip.ShopTextExample;
import com.base.service.ShopTextService;
import org.springframework.stereotype.Service;

@Service("shopTextService")
public class ShopTextServiceImpl implements ShopTextService {
	
	@Autowired
	private ShopTextMapper shopTextMapper;

	@Override
	public int countByExample(ShopTextExample example) {
		return shopTextMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(ShopTextExample example) {
		return shopTextMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		return shopTextMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ShopText record) {
		return shopTextMapper.insert(record);
	}

	@Override
	public int insertSelective(ShopText record) {
		return shopTextMapper.insertSelective(record);
	}

	@Override
	public List<ShopText> selectByExample(ShopTextExample example) {
		return shopTextMapper.selectByExample(example);
	}

	@Override
	public ShopText selectByPrimaryKey(String id) {
		return shopTextMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(ShopText record, ShopTextExample example) {
		return shopTextMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(ShopText record, ShopTextExample example) {
		return shopTextMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(ShopText record) {
		return shopTextMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ShopText record) {
		return shopTextMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<ShopText> selectByExamplePage(ShopTextExamplePage examplePage) {
		return shopTextMapper.selectByExamplePage(examplePage);
	}

	@Override
	public List<ShopText> selectByAll(ShopText record) {
		if (record.getParentid() == null) {
			return null;
		}
		return shopTextMapper.selectByAll(record);
	}

}
